<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
    <meta charset="UTF-8">
    <title>Admin</title>
</head>
<body>
<div class="container">

    <ul class="layui-nav right" lay-filter="">
        <li class="layui-nav-item">
            <a>欢迎你，[[${session.SPRING_SECURITY_CONTEXT.authentication.principal.teacherName}]]</a>
            <a th:href="@{/teacher/logout}">退出</a>
        </li>

    </ul>

</div>

<div class="left-nav">
    <div id="side-nav">
        <ul id="nav">
            <li>
                <ul class="sub-menu">
                    <li>
                        <a th:href="@{/teacher/do_teacher_class_list}">
                            <cite>查看课程</cite>
                        </a>
                    </li>
                    <li>
                        <a th:href="@{/teacher/do_teacher_score_list}">
                            <cite>批改成绩</cite>
                        </a>
                    </li>
                    <li>
                        <a th:href="@{/teacher/do_teacher_password}">
                            <cite>修改密码</cite>
                        </a>
                    </li>
                </ul>
            </li>

            </li>
        </ul>
    </div>
</div>

<div class="page-content">
    <div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
        <ul>
            <li></li>
        </ul>
        <div class="layui-tab-content">
            <table class="user-table">
                <thead>
                <tr>
                    <th>班号</th>
                    <th>课程</th>
                    <th>开始时间</th>
                    <th>结束时间</th>
                    <th>人数</th>
                </tr>
                </thead>
                <tbody th:each="class:${session.classList}">
                <tr>

                    <td th:text="${class.classId}">1</td>
                    <td th:text="${class.courseName}">小明</td>
                    <td th:text="${#dates.format(class.startTime,'yyyy-MM-dd')}">123456</td>
                    <td th:text="${#dates.format(class.endTime,'yyyy-MM-dd')}">123456</td>
                    <td th:text="${class.numbers}">123456</td>
                    <td class="admin-manage">
                        <a  th:href="@{/teacher/class_score_jump/{id}(id = ${class.id})}">
                            批改成绩
                        </a>
                    </td>



                </tr>

                </tbody>
            </table>



        </div>
    </div>
</div>
</div>
</body>
</html>